/**
 * Created by BobyCo on 2017/11/24 0024.
 */
$(function () {
    var newProduct = getJSONItem("newProduct") || {};
    $('.btn_confirm').click(function () {
        newProduct.desc = $('textarea').val();
        setJSONItem("newProduct", newProduct);
        window.history.back();
    });
});

$(window).unload(function () {
    sessionStorage.setItem('isBack', 1);
});